import * as request from "~/utils/request"
import type { LoginRequest, LoginResult } from "../types/home"

const API_PREFIX = "/home"

export function userLogin(params: LoginRequest) {
  return request.$post<LoginResult>({
    url: API_PREFIX + "/login",
    body: params
  })
}
